﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Janksen.ValidationHelper
{
	/// <summary>
	/// 
	/// </summary>
	public static class NumberValidationHelper
	{
		///// <summary>
		///// 验证System.Int32是否大于某个数
		///// </summary>
		///// <param name="current"></param>
		///// <param name="MinNum"></param>
		///// <returns></returns>
		//public static ValidationHelper<int> GreaterThan(this ValidationHelper<int> current , int MinNum)
		//{
		//    if (current.ValidationValue.CompareTo(MinNum)<0)
		//    {
		//        throw new ArgumentException(string.Format("{0}的值不能小于{1}。" , current.ValidationName , MinNum) , current.ValidationName);
		//    }

		//    return current;
		//}


		///// <summary>
		///// 
		///// </summary>
		///// <param name="current"></param>
		///// <param name="MinNum"></param>
		///// <returns></returns>
		//public static ValidationHelper<double> GreaterThan(this ValidationHelper<double> current , double MinNum)
		//{
		//    if (current.ValidationValue<MinNum)
		//    {
		//        throw new ArgumentException(string.Format("{0}的值不能小于{1}。" , current.ValidationName , MinNum) , current.ValidationName);
		//    }

		//    return current;
		//}
	}
}
